import React from 'react';
import { useHistory } from 'react-router-dom';
import {TopCss} from '../style';



const TopLogo = () => {
    let history = useHistory()
    return (
        <TopCss>
            <div className='top'>
                <div className='lef'>
                    <img src="https://pic.flyco.net.cn/mall/sys/partner/20210112/logo-wap_1610433447635.png" alt="" />
                </div>
                <div className='rig' onClick={()=>{
                    console.log('搜索',history.push);
                }}>
                    <img src="https://flycopic.oss-cn-hangzhou.aliyuncs.com/flycoimg/search.png" alt="" />
                </div>
            </div>
        <div className='lunbo'>
            <img src="https://flycopic.oss-cn-hangzhou.aliyuncs.com/mall/cms/20210702/image/%E5%89%8D%E7%A8%8B%E4%BC%BC%E9%94%A6KV-750x590(1).jpg?x-oss-process=style/cms-images" alt="" />
            <img className='pic' src="https://pic.flyco.net.cn/mall/wap/service.png?x-oss-process=style/cms-images" alt="" width='90%'  />
        </div>
        </TopCss>
    );
}

export default TopLogo;
